import 'dart:ui';

class TextDataDTO {
  final String content;
  final int width;
  final int height;
  final List<List<Color>> data;

  TextDataDTO({
    this.content = '',
    required this.width,
    required this.height,
    required this.data,
  });

  Color? getPixelColor(int x, int y) {
    if (x > 0 && y > 0 && x < width && y < height) {
      Color color = data[x][y];
      return color;
    }
    return null;
  }
}
